package com.blaze.framework.core.util.domain.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 默认的异常code枚举
 *
 * @author created by Zhou Zongbo on 2025/5/23.
 */
@Getter
@AllArgsConstructor
public enum DefaultErrorCode implements ErrorCode {

    LIMITING_ERROR(999998, "请求过于频繁，请稍后再试"),
    SYSTEM_ERROR(999999, "系统繁忙，请稍后再试");

    private final int code;
    private final String message;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return message;
    }
}
